<template>
  <div>
    <button @click="$emit('getSon', msg)">子组件分发事件名，子向父通信</button>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  data() {
    return {
      msg: "我是子组件数据",
    };
  },
};
</script>

<style lang="stylus" rel="stylesheet/stylus"></style>
